{css style/canbo-edit.css}
{js scripts/canbo-edit.js}
<div class="content-wrap">
    <form id="canboform" class="form-horizontal" method="post" action="/canbo/process" enctype="multipart/form-data">

        <legend>{$title|Sửa đổi thông tin cán bộ} <strong>{$cb_id|}</strong></legend>

        <div class="control-group">
            <label for="cb_hoten" class="control-label required">Họ tên</label>
            <div class="controls">
                <input type="text" name="cb_hoten" id="cb_hoten" value="{$cb_hoten|}">
            </div>
        </div><!-- /#cb_hoten -->

        <div class="control-group">
            <label class="control-label required">Giới tính</label>
            <div class="controls">
                <input type="hidden" id="cb_gtinh_state" value="{$cb_gtinh|1}">
                <label class="radio inline"><input type="radio" id="cb_gtinh_1" name="cb_gtinh" value="1"> Nam</label>
                <label class="radio inline"><input type="radio" id="cb_gtinh_0" name="cb_gtinh" value="0"> Nữ</label>
            </div>
        </div><!-- /#cb_gtinh -->

        <div class="control-group">
            <label class="control-label required">Ngày sinh (dd/mm/yyyy)</label>
            <div class="controls">
                <input type="text" name="cb_nsinh" id="cb_nsinh" value="{$cb_nsinh|}">
            </div>
        </div><!-- /#cb_nsinh -->

        <div class="control-group">
            <label class="control-label" for="cb_sodt">Số điện thoại</label>
            <div class="controls">
                <input type="text" id="cb_sodt" name="cb_sodt" value="{$cb_sodt|}">
            </div>
        </div><!-- /#cb_sodt -->

        <div class="control-group">
            <label class="control-label required">Tình trạng hôn nhân</label>
            <div class="controls">
                <input type="hidden" id="cb_kethon_state" value="{$cb_kethon|0}">
                <label class="radio inline"><input type="radio" id="cb_kethon_0" name="cb_kethon" value="0">Độc thân</label>
                <label class="radio inline"><input type="radio" id="cb_kethon_1" name="cb_kethon" value="1">Đã kết hôn</label>
            </div>
        </div><!-- /#cb_kethon -->

        <div class="control-group">
            <label class="control-label required" for="cb_diachi">Địa chỉ</label>
            <div class="controls">
                <input type="text" name="cb_diachi" id="cb_diachi" value="{$cb_diachi|}">
            </div>
        </div><!-- /#cb_diachi -->

        <div class="control-group">
            <label class="control-label required" for="cb_email">Email</label>
            <div class="controls">
                <input type="text" name="cb_email" id="cb_email" value="{$cb_email|}">
            </div>
        </div><!-- /#cb_email -->

        <div class="control-group"><label class="control-label required" for="dt_id">Dân tộc</label>
            <div class="controls">
                <input type="hidden" id="dt_id_state" value="{$dt_id|1}">
                <select name="dt_id" id="dt_id">
                    {loop dantoc}
                    <option value="{$dt_id}">{$dt_ten}</option>
                    {/loop dantoc}
                </select>
            </div>
        </div><!-- /#dt_id -->

        <div class="control-group"><label class="control-label required" for="tg_id">Tôn giáo</label>
            <div class="controls">
                <input type="hidden" id="tg_id_state" value="{$tg_id|1}">
                <select name="tg_id" id="tg_id">
                    {loop tongiao}
                    <option value="{$tg_id}">{$tg_ten}</option>
                    {/loop tongiao}
                </select>
            </div>
        </div><!-- /#tg_id -->

        <div class="control-group"><label class="control-label required" for="td_id">Trình độ</label>
            <div class="controls">
                <input type="hidden" id="td_id_state" value="{$td_id|1}">
                <select name="td_id" id="td_id">
                    {loop trinhdo}
                    <option value="{$td_id}">{$td_mota}</option>
                    {/loop trinhdo}
                </select>
            </div>
        </div><!-- /#td_id -->

        <div class="control-group"><label class="control-label required" for="hv_id">Học vị</label>
            <div class="controls">
                <input type="hidden" id="hv_id_state" value="{$hv_id|1}">
                <select name="hv_id" id="hv_id">
                    {loop hocvi}
                    <option value="{$hv_id}">{$hv_mota}</option>
                    {/loop hocvi}
                </select>
            </div>
        </div><!-- /#hv_id - hoc vi -->

        <div class="control-group"><label class="control-label required" for="hh_id">Học hàm</label>
            <div class="controls">
                <input type="hidden" id="hh_id_state" value="{$hh_id|1}">
                <select name="hh_id" id="hh_id">
                    {loop hocham}
                    <option value="{$hh_id}">{$hh_mota}</option>
                    {/loop hocham}
                </select>
            </div>
        </div><!-- /#hh_id - hoc ham -->

        <div class="control-group"><label class="control-label required" for="b_id">Bậc</label>
            <div class="controls">
                <input type="hidden" id="b_id_state" value="{$b_id|1}">
                <select name="b_id" id="b_id">
                    {loop bac}
                    <option value="{$b_id}">{$b_id} - {$b_mota}</option>
                    {/loop bac}
                </select>
            </div>
        </div><!-- /#b_id - bac -->

        <div class="control-group"><label class="control-label required" for="n_id">Ngạch</label>
            <div class="controls">
                <input type="hidden" id="n_id_state" value="{$n_id|1}">
                <select name="n_id" id="n_id">
                    {loop ngach}
                    <option value="{$n_id}">{$n_id} - {$n_mota}</option>
                    {/loop ngach}
                </select>
            </div>
        </div><!-- /#n_id - ngach -->

        <div class="control-group">
            <label class="control-label" for="cb_hinh_new">Ảnh
                {if showimage|1}
                <em>(Chọn ảnh khác nếu muốn thay đổi)</em>
                {/if showimage}
            </label>
            <div class="controls">
                {if showimage|1}
                <img src="{$cb_hinh}" alt="ảnh hiện tại" width="128px" height="128px" style="display: block;">
                {/if showimage}
                <input type="file" name="cb_hinh_new" id="cb_hinh_new" class="btn" >
            </div>
        </div><!-- /#cb_hinh -->

        <div class="control-group">
            <label class="control-label required" for="g_id">Quyền trên hệ thống</label>

            <div class="controls">
                <input type="hidden" id="g_id_state" value="{$g_id}">
                <select name="g_id" id="g_id">
                    {loop group}
                    <option value="{$g_id}">{$g_mota}</option>
                    {/loop group}
                </select>
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="cb_matkhau_new">Mật khẩu</label>

            <div class="controls">
                <input type="password" id="cb_matkhau_new" name="cb_matkhau_new">
            </div>
        </div>

        <div class="control-group buttons">
            <a href="quanly/canbo">Quay trở lại</a>
            <button type="submit" class="btn" name="submit">Cập nhật</button>
            <input type="hidden" name="cb_id" id="cb_id" value="{$cb_id}">
            <input type="hidden" name="type" value="{$type|edit}">
        </div>

    </form>
</div>